package com.zuipin.entity;

import java.io.Serializable;

import javax.persistence.Transient;

/**
 * 
 * 消息队列消息
 * 
 **/
@SuppressWarnings("serial")
public class RocketMqInfo implements Serializable {
	
	private Long				id;										//
	
	private String				topic;									// 表示消息的第一级类型(系统)
	
	private String				tag;									// 表示消息的第二级类型
	
	private String				keyNo;									// 消息号,保证幂等性
	
	private String				body;									// 消息内容
	
	private Integer				type;									// 消息类型:1:生产端消息;2:消费端消息;
	
	private Integer				nums;									// 次数
	
	private String				msgId;									// 服务器的消息ID
	
	private Integer				queueId;								// 队列ID
	
	private String				bornHost;								// 发送端地址
	
	private String				storeHost;								// 服务端地址
	
	private String				createdTime;							// 创建时间
	
	private Long				creatorId;								// 创建人ID
	
	private String				creator;								// 创建人姓名
	
	private Long				updatorId;								// 修改人ID
	
	private String				updator;								// 修改人姓名
	
	private String				updateTime;								// 修改时间
	
	private Integer				isResend;								// 是否重发:0:是;1:否
	
	@Transient
	private Boolean				isExist;								// 是否存在
	
	public static Integer		TYPE_PRODUCER_1		= 1;
	public static Integer		IS_RESEND_NO_0		= 0;
	
	public final static String	PRODUCT_GROUP		= "ProducerGroup";	// 生产组
	
	public final static String	PRODUCT_NAME		= "Producer";		// 生产者实例
	
	public final static String	CONSUMER_GROUP		= "ConsumerGroup";	// 消费组
	
	public final static String	CONSUMER_NAME		= "Consumer";		// 消费者实例
	public final static String	SYSTEM_NAME			= "cbs";
	
	public final static String	SYSTEM_NAME_WORKER	= "worker";
	
	public final static String	SYSTEM_NAME_CIS		= "cis";
	
	public final static String	SYSTEM_NAME_ERP		= "erp";
	
	public static Integer		IS_RESEND_YES_1		= 1;
	
	public static Integer		TYPE_CONSUMER_2		= 2;
	public static String		RESEND_PRE_FIX		= "R-";				// 重发KEY_NO前缀
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public Long getId() {
		return this.id;
	}
	
	public void setTopic(String topic) {
		this.topic = topic;
	}
	
	public String getTopic() {
		return this.topic;
	}
	
	public void setTag(String tag) {
		this.tag = tag;
	}
	
	public String getTag() {
		return this.tag;
	}
	
	public void setKeyNo(String keyNo) {
		this.keyNo = keyNo;
	}
	
	public String getKeyNo() {
		return this.keyNo;
	}
	
	public void setBody(String body) {
		this.body = body;
	}
	
	public String getBody() {
		return this.body;
	}
	
	public void setType(Integer type) {
		this.type = type;
	}
	
	public Integer getType() {
		return this.type;
	}
	
	public void setNums(Integer nums) {
		this.nums = nums;
	}
	
	public Integer getNums() {
		return this.nums;
	}
	
	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}
	
	public String getMsgId() {
		return this.msgId;
	}
	
	public void setQueueId(Integer queueId) {
		this.queueId = queueId;
	}
	
	public Integer getQueueId() {
		return this.queueId;
	}
	
	public void setBornHost(String bornHost) {
		this.bornHost = bornHost;
	}
	
	public String getBornHost() {
		return this.bornHost;
	}
	
	public void setStoreHost(String storeHost) {
		this.storeHost = storeHost;
	}
	
	public String getStoreHost() {
		return this.storeHost;
	}
	
	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}
	
	public String getCreatedTime() {
		return this.createdTime;
	}
	
	public void setCreatorId(Long creatorId) {
		this.creatorId = creatorId;
	}
	
	public Long getCreatorId() {
		return this.creatorId;
	}
	
	public void setCreator(String creator) {
		this.creator = creator;
	}
	
	public String getCreator() {
		return this.creator;
	}
	
	public void setUpdatorId(Long updatorId) {
		this.updatorId = updatorId;
	}
	
	public Long getUpdatorId() {
		return this.updatorId;
	}
	
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	
	public String getUpdator() {
		return this.updator;
	}
	
	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getUpdateTime() {
		return this.updateTime;
	}
	
	public void setIsResend(Integer isResend) {
		this.isResend = isResend;
	}
	
	public Integer getIsResend() {
		return this.isResend;
	}
	
	public Boolean getIsExist() {
		return isExist;
	}
	
	public void setIsExist(Boolean isExist) {
		this.isExist = isExist;
	}
	
}
